package com.yy.daili;

public class Student implements Person{

    private String name;

    public Student(String name) {
        this.name = name;
    }

    @Override
    public void giveMoney() {
        System.out.println(name+"  上缴了 50元 班费");
    }

    public String getName() {
        return name;
    }

    public String toString() {
        return "Student{name = " + name + "}";
    }
}
